package com.wanxi;

import java.util.ArrayList;

public class FollowTest {
    public static void main(String[] args) {

        String name1 = "王海云";
        String name2 = "陈明";
        String name3 = "江姐";
        String name4 = "刘大嘴";
        String name5 = "李云";
        String name6 = "吼飞";

        Follow user1 = new Follow();

        user1.followAccount(name1);
        user1.followAccount(name2);
        user1.followAccount(name3);
        user1.followAccount(name4);


        Follow user2 = new Follow();

        user2.followAccount(name3);
        user2.followAccount(name4);
        user2.followAccount(name5);
        user2.followAccount(name6);

        System.out.println(user1.getFollowList());
        System.out.println(user2.getFollowList());


        //测试输出共同关注的列表。
        ArrayList commonList = user1.commonFollowList(user2);
        System.out.println(commonList);


        //测试输出独自关注的列表。
        ArrayList aloneList = user1.aloneFollowList(user2);
        System.out.println(aloneList);

        //测试输出所有的关注列表，不重复。
        ArrayList allList = user1.allFollowList(user2);
        System.out.println(allList);


        System.out.println(user1.getFollowList());
        System.out.println(user2.getFollowList());


    }
}
